package com.doge.walknovel.business.home.library

import com.doge.walknovel.api.model.NovelInfo

data class LibraryNovel(
    val book: NovelInfo?,
    val edit: Boolean,
    val add: Boolean
) {
    companion object {
        val ADD = LibraryNovel(null, edit = false, add = true)

        fun from(data: NovelInfo): LibraryNovel {
            return LibraryNovel(data, edit = false, add = false)
        }
    }
}